﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Extensions.FileProviders;

namespace RAP.Web.Libary.AppStatup
{
  /// <summary>
  /// 
  /// </summary>
  public interface IAppEnvironment
  {
    
    /// <summary>
    /// 环境名称
    /// </summary>
    string EnvironmentName { get; }

    /// <summary>
    /// 
    /// </summary>
    string ApplicationName
    {
      get;
    }

    /// <summary>
    /// 
    /// </summary>
    string AppRootPath
    {
      get;
    }

    /// <summary>
    /// 
    /// </summary>
    IFileProvider AppRootFileProvider
    {
      get;
    }

    /// <summary>
    /// 
    /// </summary>
    string ContentRootPath
    {
      get;
    }

    /// <summary>
    /// 
    /// </summary>
    IFileProvider ContentRootFileProvider
    {
      get;
    }

    /// <summary>
    /// 是否开发环境
    /// </summary>
    bool IsDevelopment { get; }

    /// <summary>
    /// 是否生产环境
    /// </summary>
    bool IsProduction { get; }
  }
}
